#!/bin/bash


Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0


Get-WindowsCapability -Online | Where-Object {$_.Name -like "OpenSSH.Client"}



Get-WindowsCapability -Online -Name OpenSSH.Client



ssh -t root@192.168.2.251 'mkdir -p ~/.vscode-server/bin && bash -c "wget -qO- https://update.code.dev/latest/server/linux-x64 | tar -xO > ~/.vscode-server/bin/vscode-server && chmod 755 ~/.vscode-server/bin/vscode-server"'

ssh-keygen -q -t rsa -b 2048 -f /etc/ssh/ssh_host_rsa_key -N '' -y
ssh-keygen -q -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N '' -y
ssh-keygen -t dsa -f /etc/ssh/ssh_host_ed25519_key -N '' -y


ssh-keygen -t rsa -b 4096 -C "1813033378@qq.com" -Y


ssh root@192.168.2.251

Host 192.168.2.251
    User root
    HostName 192.168.2.251
    IdentityFile /W:/Tool/msys64/home/Administrator/.ssh/id_rsa.pub


/W:/Tool/msys64/home/Administrator/.ssh/id_rsa.pub


W:\Tool\msys64\usr\bin\ssh.exe




W:\Tool\msys64\usr\bin\ssh.exe ssh root@192.168.2.251